content = input("请输入一个字符串：")
c = input("输入要查询的字符：")
count = 0
for i in range(len(content)):
    if content[i]==c:
        count = count + 1
print(f"{c}字符的个数是{count}个")